import KoaRouter from 'koa-router'
export const mainRoute=new KoaRouter()
import {MainController} from '../controllers/main'



mainRoute.get('/main',async(ctx)=>{
  console.log("main路由接收到get请求");
  const foodList =await new MainController().getAllFood() 
  console.log("获取到的菜单数组",foodList);
  ctx.body={
    foodList,
    message:'ok'
  }
})
